#!/usr/bin/env python

import sys

def parse_terms(lines):
    term_started = False
    for line in lines:
        if line.startswith('[Term]'):
            term_started = True
            term = {}
        elif term_started:
            if line.strip() == '':
                yield term
                term_started = False
            else:
                key, value = line.strip().split(':', 1)
                key = key.strip()
                value = value.strip()
                term[key] = value


def main():
    for term in parse_terms(sys.stdin):
        print '\t'.join((term['id'], term['namespace'], term['name']))


if __name__ == "__main__":
    main()

